<template>
  <component :is="dynamicComponent"></component>
</template>
<script lang="jsx">
import { defineComponent,markRaw } from 'vue';
export default{
  data(){
    return {
      dynamicComponent : null
    }
  },
  methods : {
    show(options){
      console.log(options,'options');
      this.dynamicComponent = defineComponent(markRaw({
        setup(){
          return () => options.template;
        }
      }));

    }
  },
}
</script>
